package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.domain.HomeworkQuestion;
import com.ruoyi.business.mapper.HomeworkQuestionMapper;
import com.ruoyi.business.service.IHomeworkQuestionService;
import com.ruoyi.common.utils.StringUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 最爱喝兽奶
 * @create 2022/9/15
 **/
@Service
public class HomeworkQuestionServiceImpl extends ServiceImpl<HomeworkQuestionMapper, HomeworkQuestion> implements IHomeworkQuestionService {
    @Override
    public List<String> selectQuestionIdsByHomeworkId(String homeworkId) {
        if (StringUtils.isNotBlank(homeworkId)) {
            return baseMapper.queryQuestionsByHomeworkId(homeworkId);
        }
        return null;
    }
}
